package com.ctshk.rpc.train.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 火车票api初始化设置表
 * </p>
 *
 * @author 彭柳霖
 * @since 2021-03-10
 */
@Data
public class TrainTicketsInitializationSettingsReq implements Serializable{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "供应商id")
    private Long supplierId;

    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @ApiModelProperty(value = "打包状态")
    private Integer packStatus;

    @NotNull(message = "预订服务费不能为空")
    @ApiModelProperty(value = "服务费")
    private BigDecimal serviceCharge;

    @Max(value = 2, message = "服务费类型值域:1-数值加幅, 2-百分比加幅")
    @Min(value = 1, message = "服务费类型值域:1-数值加幅, 2-百分比加幅")
    @ApiModelProperty(value = "服务费类型")
    private Integer serviceChargeType;

    @Max(value = 2, message = "退改手续费类型值域:1-数值加幅, 2-百分比加幅")
    @Min(value = 1, message = "退改手续费类型值域:1-数值加幅, 2-百分比加幅")
    @ApiModelProperty(value = "退改手续费类型")
    private Integer refundServiceChargeType;

    @NotNull(message = "退改手续费不能为空")
    @ApiModelProperty(value = "退改手续费")
    private BigDecimal refundServiceCharge;

}
